# -*- coding: utf-8 -*-
# @Time    : 2022/5/16 22:39
# @Author  : 我还能卷
# @FileName: test2.py
# @Software: PyCharm

import unittest
from login import login


class TestLogin(unittest.TestCase):
    def testcase2(self):
        username, password = 'yuz', '123'
        actual = login(username, password)
        expect = {"code": "200", "msg": "登录成功"}
        self.assertEqual(actual, expect)
